package com.hanthink.system.service.impl.manhour;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hanthink.system.mapper.manhour.FactWorkerUsedMapper;
import com.hanthink.system.domain.manhour.FactWorkerUsed;
import com.hanthink.system.service.manhour.IFactWorkerUsedService;

/**
 * 实际用工数据维护Service业务层处理
 * 
 * @author hanthink
 * @date 2022-01-05
 */
@Service
public class FactWorkerUsedServiceImpl implements IFactWorkerUsedService 
{
    @Autowired
    private FactWorkerUsedMapper factWorkerUsedMapper;

    /**
     * 查询实际用工数据维护
     * 
     * @param id 实际用工数据维护ID
     * @return 实际用工数据维护
     */
    @Override
    public FactWorkerUsed selectFactWorkerUsedById(Long id)
    {
        return factWorkerUsedMapper.selectFactWorkerUsedById(id);
    }


    /**
     * 查询实际用工数据维护列表
     * 
     * @param factWorkerUsed 实际用工数据维护
     * @return 实际用工数据维护
     */
    @Override
    public List<FactWorkerUsed> selectFactWorkerUsedList(FactWorkerUsed factWorkerUsed)
    {
        return factWorkerUsedMapper.selectFactWorkerUsedList(factWorkerUsed);
    }

    @Override
    public List<FactWorkerUsed> selectFactWorkerUsedReport(FactWorkerUsed factWorkerUsed)
    {
        return factWorkerUsedMapper.selectFactWorkerUsedReport(factWorkerUsed);
    }
    /**
     * 新增实际用工数据维护
     * 
     * @param factWorkerUsed 实际用工数据维护
     * @return 结果
     */
    @Override
    public int insertFactWorkerUsed(FactWorkerUsed factWorkerUsed)
    {
        return factWorkerUsedMapper.insertFactWorkerUsed(factWorkerUsed);
    }

    /**
     * 修改实际用工数据维护
     * 
     * @param factWorkerUsed 实际用工数据维护
     * @return 结果
     */
    @Override
    public int updateFactWorkerUsed(FactWorkerUsed factWorkerUsed)
    {
        return factWorkerUsedMapper.updateFactWorkerUsed(factWorkerUsed);
    }

    /**
     * 批量删除实际用工数据维护
     * 
     * @param ids 需要删除的实际用工数据维护ID
     * @return 结果
     */
    @Override
    public int deleteFactWorkerUsedByIds(Long[] ids)
    {
        return factWorkerUsedMapper.deleteFactWorkerUsedByIds(ids);
    }

    /**
     * 删除实际用工数据维护信息
     * 
     * @param id 实际用工数据维护ID
     * @return 结果
     */
    @Override
    public int deleteFactWorkerUsedById(Long id)
    {
        return factWorkerUsedMapper.deleteFactWorkerUsedById(id);
    }
}
